CMAKE_MINIMUM_REQUIRED(VERSION 3.17)
project(zpack)
    
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_PREFIX_PATH $ENV{LibArchive})

message(env-var-LibArchive -----------> $ENV{LibArchive})

# Include Directories.
include_directories(.)
include_directories($ENV{LibArchive}/include)
link_directories($ENV{LibArchive}/lib)

add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE archive.dll)